package com.rtx.wms.std.express.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rtx.api.annotation.DataSourceAnnotation;
import com.rtx.edi.model.express.po.PlExpressResult;
import com.rtx.wms.std.express.mapper.ExpressResultMapper;
import com.rtx.wms.std.express.service.ExpressResultService;

@Service
public class ExpressResultServiceImpl extends ServiceImpl<ExpressResultMapper, PlExpressResult> implements ExpressResultService{

	@DataSourceAnnotation
	@Override
	public List<PlExpressResult> selectByWrappers(String datasourcekey, Wrapper<PlExpressResult> wrapper) {
		return baseMapper.selectList(wrapper);
	}
	
	@DataSourceAnnotation
	public void addPlExpressResult(String datasourceky,PlExpressResult po){
		baseMapper.insert(po);
	}

	@DataSourceAnnotation
	@Override
	public void deleteByWrappers(String datasourcekey, Wrapper<PlExpressResult> wrapper) {
		baseMapper.delete(wrapper);
	}
}
